package com.bbs.server;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.bbs.dao.ForumMapper;
import com.bbs.model.Forum;


@Service
public class ForumService {

	@Resource
	private ForumMapper forumMapper;
	
    public void add(Forum forum){
    	forumMapper.add(forum);
    }
	 
	public void update(Forum forum){
		forumMapper.update(forum);
	}
	
	public void delete(Forum forum){
		forumMapper.delete(forum);
	}
	
	public List<Forum> getForumList(){
		return forumMapper.getForumList();
	}
	
	public List<Forum> fenye(Map<String,Object> data){
		return forumMapper.fenye(data);
	}
	
	public List<Forum> chazhao(Map<String,Object> data){
		return forumMapper.chazhao(data);
	}
	

}
